package com.example.demo.web;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.demo.db.enity.SysUser;
import com.example.demo.service.user.IUserService;
import com.example.demo.service.user.impl.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/***
 *
 * @author 86187
 * @date 2021-12-03 21:01
 *
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    private IUserService userService;

    @RequestMapping("/users")
    public Object getUsers(){
        return userService.getBaseMapper().selectList(new QueryWrapper<SysUser>());
    }


}
